package course.service;

import course.pojo.entity.Teacher;
import course.pojo.vo.Page;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/30 21:05
 */
public interface TeacherService {
    Teacher getById(Integer tid);

    /**
     * @return 返回自增主键
     */
    int addTeacher(Teacher teacher);

    int updateById(Teacher teacher);

    int updateInfo(Teacher teacher);

    int deleteById(Integer tid);

    List<Teacher> getList();

    /**/

    int deleteSelect(List<Integer> ids);

    long count();

    Page<Teacher> page(Integer pageNo);

    Page<Teacher> query(String tname, Integer pageNo);

    List<Teacher> selectBathByIds(List<Integer> ids);
}
